﻿Imports System.Configuration


Namespace Configuration

    Public Class PictureProviderSection
        Inherits ConfigurationSection
        Friend Const STR_Providers As String = "providers"
        Friend Const STR_DefaultProvider As String = "defaultProvider"

        <ConfigurationProperty(STR_Providers)> _
        Public ReadOnly Property Providers() As ProviderSettingsCollection
            Get
                Return DirectCast(Me(STR_Providers), ProviderSettingsCollection)
            End Get
        End Property




        <ConfigurationProperty(STR_DefaultProvider, DefaultValue:="WdsPictureProvider")> _
        <StringValidator(MinLength:=1)> _
        Public Property DefaultProvider() As String
            Get
                Return DirectCast(Me(STR_DefaultProvider), String)
            End Get
            Set(ByVal value As String)
                Me(STR_DefaultProvider) = value
            End Set
        End Property


    End Class


End Namespace


